<template>
  <view>
    <my-login v-if="!getToken" />
    <my-userinfo v-else />
  </view>
</template>

<script>
import tabBarMixin from '@/mixins/tabBar-setBadge.js'
import { mapGetters } from 'vuex'
export default {
  mixins: [tabBarMixin],
  computed: {
    ...mapGetters('user', ['getToken'])
  }
}
</script>
